#ifndef WEAPON_H
#define WEAPON_H

namespace first
{
    #define MAX_WEAPON_POWER 100

    class Weapon {
      protected:
        int power;
        int maxBullet;
        int nBullets;
      public:
        virtual void shoot() = 0;
        int getBulletsLeft(){
            return nBullets;
        }
        virtual ~Weapon() {};
    };

    class Gun: public Weapon{
      public:
        Gun(){
            power = 10; maxBullet = 6; nBullets= 6;
        };

        virtual void shoot(){
            nBullets--;
        }



    };

}


#endif // WEAPON_H
